#!/bin/bash
export GO111MODULE="off"
#for linux
GOPATH=`pwd` GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o xu
GOPATH=`pwd` GOOS=linux GOARCH=386 go build -ldflags "-s -w" -o xu32

#for windows
GOPATH=`pwd` GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o xu.exe
GOPATH=`pwd` GOOS=windows GOARCH=386 go build -ldflags "-s -w" -o xu32.exe

#for mac
GOPATH=`pwd` GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o xu_darwin

#for arm64
GOPATH=`pwd` GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -o xu_arm
GOPATH=`pwd` GOOS=linux GOARCH=arm go build -ldflags "-s -w" -o xu_arm32
